package com.example.news.controller;

import com.example.news.bean.User;
import com.example.news.service.TypeService;
import com.example.news.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * 类型信息接口
 */
@RestController
public class TypeController {
    @Autowired
    TypeService typeService;
    /**
     * 获取所有类型
     * @return
     */
    @RequestMapping("/selectType")
    public Map<String,Object> selectType(){
        return typeService.selectType();
    }
}
